﻿using MiddlewareTest.Middleware;
using MiddlewareTest.MiddlewareDelegate;
using System;

namespace MiddlewareTest.CustomMiddlewares
{
    public class Test2Middleware : BaseMiddleware
    {
        public Test2Middleware(IServiceProvider serviceProvider)
            : base(serviceProvider)
        {
        }

        public override void Executed(RequestContext context)
        {
            Console.WriteLine(" Return Test2Middleware");
        }

        public override void Execution(RequestContext context)
        {
            Console.WriteLine("Access Test2Middleware");
        }
    }
}
